<%- bundle ||= share -%>
<div id="share" class="clearfix" style="display:none;">
  <%- form_tag share_bundle_path(bundle), :class => "share" do -%>
    <p>
      <label for="share_email" class="text">Email Address</label><br />
      <%= text_field_tag :email, nil, :id => "share_email", :class => "text" %>
    </p>
    <p>
      <label for="share_message" class="text">Your Message</label><br />
      <%= text_area_tag :message, nil, :id => "share_message", :class => "text", :rows => 4, :cols => 30 %>
    </p>
  
    <div>
      <button type="submit" class="positive button">
        <%= image_tag "email_go.png" %>
        Send
      </button>
      <%= link_to_function "#{image_tag "cross.png"} Cancel", "setTimeout(function() { $('#share').fadeOut() }, 10);", :class => "negative button" %>
    </div>
  <% end %>
</div>